<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/erp/T_order.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/erp/T_order.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'c_id',
                    footer: "Foots",
                    cnName: 't_order',
                    name: 'T_order',
                    url: "/T_order/",
                    sortName: "c_id"
                },
                extend: extend,
                editFormFields: {"c_cancel_time":"","c_operator_id":"","c_operator_name":"","c_out_code":"","c_out_number":"","c_parent_id":"","c_pay_time":"","c_operator_account":"","c_real_type_name":"","c_service_point_id":"","c_service_point_name":"","c_start_play_time":"","c_status":"","c_sub_channel":"","c_sub_tag":"","c_remark":"","c_operation_time":"","c_is_settlement":"","c_is_payment":"","c_channel":"","c_create_time":"","c_customer_id":"","c_customer_idcard":"","c_customer_idcard_type":"","c_customer_name":"","c_customer_phone":"","c_device_code":"","c_end_play_time":"","c_extra":"","c_id":"","c_international":"","c_invoice_code":"","c_is_cancel":"","c_is_invoice":"","c_version":"","c_voting_code":""},
                editFormOptions: [[{"title":"取消时间","field":"c_cancel_time","disabled":true,"type":"datetime"},
                               {"title":"c_operator_id","field":"c_operator_id","type":"text"},
                               {"title":"c_operator_name","field":"c_operator_name","type":"text"},
                               {"title":"c_out_code","field":"c_out_code","type":"text"}],
                              [{"title":"外部订单号","field":"c_out_number","type":"text"},
                               {"title":"c_parent_id","field":"c_parent_id","type":"text"},
                               {"title":"支付时间","field":"c_pay_time","type":"datetime"},
                               {"title":"c_operator_account","field":"c_operator_account","type":"text"}],
                              [{"title":"c_real_type_name","field":"c_real_type_name","type":"text"},
                               {"title":"c_service_point_id","field":"c_service_point_id","disabled":true,"type":"text"},
                               {"title":"c_service_point_name","field":"c_service_point_name","type":"text"},
                               {"title":"游玩开始时间","field":"c_start_play_time","disabled":true,"type":"datetime"}],
                              [{"title":"状态1已确认2已取消3已出票","field":"c_status","type":"text"},
                               {"title":"c_sub_channel","field":"c_sub_channel","type":"text"},
                               {"title":"c_sub_tag","field":"c_sub_tag","type":"text"},
                               {"title":"c_remark","field":"c_remark","type":"text"}],
                              [{"title":"入库时间","field":"c_operation_time","disabled":true,"type":"datetime"},
                               {"title":"是否结账","field":"c_is_settlement","type":"text"},
                               {"title":"是否支付","field":"c_is_payment","type":"text"},
                               {"title":"c_channel","field":"c_channel","type":"text"}],
                              [{"title":"创建时间","field":"c_create_time","disabled":true,"type":"datetime"},
                               {"title":"c_customer_id","field":"c_customer_id","type":"text"},
                               {"title":"c_customer_idcard","field":"c_customer_idcard","type":"text"},
                               {"title":"c_customer_idcard_type","field":"c_customer_idcard_type","type":"text"}],
                              [{"title":"c_customer_name","field":"c_customer_name","type":"text"},
                               {"title":"c_customer_phone","field":"c_customer_phone","disabled":true,"type":"text"},
                               {"title":"c_device_code","field":"c_device_code","type":"text"},
                               {"title":"游玩结束时间","field":"c_end_play_time","disabled":true,"type":"datetime"}],
                              [{"title":"c_extra","field":"c_extra","type":"text"},
                               {"title":"c_id","required":true,"field":"c_id","disabled":true,"type":"text"},
                               {"title":"c_international","field":"c_international","type":"text"},
                               {"title":"c_invoice_code","field":"c_invoice_code","type":"text"}],
                              [{"title":"是否取消","field":"c_is_cancel","type":"text"},
                               {"title":"是否开票","field":"c_is_invoice","type":"text"},
                               {"title":"c_version","field":"c_version","type":"text"},
                               {"title":"c_voting_code","field":"c_voting_code","type":"text"}]],
                searchFormFields: {},
                searchFormOptions: [],
                columns: [{field:'c_cancel_time',title:'取消时间',type:'bigint',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_operator_id',title:'c_operator_id',type:'string',width:120,align:'left',sortable:true},
                       {field:'c_operator_name',title:'c_operator_name',type:'string',width:120,align:'left'},
                       {field:'c_out_code',title:'c_out_code',type:'string',width:120,align:'left'},
                       {field:'c_out_number',title:'外部订单号',type:'string',width:120,align:'left'},
                       {field:'c_parent_id',title:'c_parent_id',type:'string',width:120,align:'left'},
                       {field:'c_pay_time',title:'支付时间',type:'bigint',width:120,align:'left'},
                       {field:'c_operator_account',title:'c_operator_account',type:'string',width:120,align:'left'},
                       {field:'c_real_type_name',title:'c_real_type_name',type:'string',width:120,align:'left'},
                       {field:'c_service_point_id',title:'c_service_point_id',type:'string',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_service_point_name',title:'c_service_point_name',type:'string',width:120,align:'left'},
                       {field:'c_start_play_time',title:'游玩开始时间',type:'bigint',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_status',title:'状态1已确认2已取消3已出票',type:'int',width:120,align:'left'},
                       {field:'c_sub_channel',title:'c_sub_channel',type:'string',width:120,align:'left'},
                       {field:'c_sub_tag',title:'c_sub_tag',type:'string',width:120,align:'left'},
                       {field:'c_remark',title:'c_remark',type:'string',width:120,align:'left'},
                       {field:'c_operation_time',title:'入库时间',type:'bigint',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_is_settlement',title:'是否结账',type:'sbyte',width:120,align:'left'},
                       {field:'c_is_payment',title:'是否支付',type:'sbyte',width:120,align:'left'},
                       {field:'c_channel',title:'c_channel',type:'string',width:120,align:'left'},
                       {field:'c_create_time',title:'创建时间',type:'bigint',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_customer_id',title:'c_customer_id',type:'string',width:120,align:'left'},
                       {field:'c_customer_idcard',title:'c_customer_idcard',type:'string',width:120,align:'left'},
                       {field:'c_customer_idcard_type',title:'c_customer_idcard_type',type:'int',width:120,align:'left'},
                       {field:'c_customer_name',title:'c_customer_name',type:'string',width:120,align:'left'},
                       {field:'c_customer_phone',title:'c_customer_phone',type:'string',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_device_code',title:'c_device_code',type:'string',width:120,align:'left'},
                       {field:'c_end_play_time',title:'游玩结束时间',type:'bigint',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_extra',title:'c_extra',type:'string',width:120,align:'left'},
                       {field:'c_id',title:'c_id',type:'string',width:120,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'c_international',title:'c_international',type:'string',width:120,align:'left'},
                       {field:'c_invoice_code',title:'c_invoice_code',type:'string',width:120,align:'left'},
                       {field:'c_is_cancel',title:'是否取消',type:'sbyte',width:120,align:'left'},
                       {field:'c_is_invoice',title:'是否开票',type:'sbyte',width:120,align:'left'},
                       {field:'c_version',title:'c_version',type:'int',width:120,align:'left'},
                       {field:'c_voting_code',title:'c_voting_code',type:'string',width:120,align:'left'}],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
